#ifndef ORDER_ITEM_H_
#define ORDER_ITEM_H_

#include <string>
#include <vector>
#include <iostream>
using namespace std;


struct Order_Item {
public:
	// constructors
	Order_Item(){}
	Order_Item (char seat, int ord_id, int menu_item, int qty);//JTL A2
 
    friend std::istream& operator>> (std::istream& in, Order_Item& oi) 
	{ 
        return in >> oi.seat_id >> oi.order_id >> oi.menu_item_id >> oi.prod_qty; 
    }
    friend std::ostream& operator<< (std::ostream& os, Order_Item const& oi) 
	{ 
        return os << oi.seat_id << " " << oi.order_id << " " << oi.menu_item_id << " " << oi.prod_qty; 
    }
   // utility functions
	void display();//JTL A2
	int get_order_id();//JTL B2.a
	int get_menu_item_id();//JTL B2.a
	int get_quantity();//JTL B2.a
	//Getters Ecky B3
    int getOrderId()        { return order_id; }
    int getMenuItemId()     { return menu_item_id; }

private:
   //constants  

   // private data
	char seat_id;//JTL A2
	int order_id;
	int menu_item_id;
	int prod_qty;
};
void read_item(vector<Order_Item>& items,string file);

#endif //ORDER_ITEM_H_
